package noppes.vc.client.renderer;

import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import noppes.vc.blocks.tiles.TileStool;
import noppes.vc.client.models.ModelStool;

public class BlockStoolRenderer extends BlockRendererBasic {
   private final ModelStool model = new ModelStool();
   private int meta;

   public BlockStoolRenderer(int meta) {
      this.meta = meta;
   }

   public void render(TileEntity var1, double var2, double var4, double var6, float var8, int blockDamage, float partialTick) {
      TileStool tile = (TileStool)var1;
      GlStateManager.pushMatrix();
      GlStateManager.translate((float)var2 + 0.5F, (float)var4 + 1.68F, (float)var6 + 0.5F);
      GlStateManager.scale(1.2F, 1.1F, 1.2F);
      this.setWood(tile, this.meta, 90);
      this.model.render((Entity)null, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
      GlStateManager.popMatrix();
   }
}
